<?php

include '../config.inc.php';
include _FLEP_LIB_DIR_.'common.inc.php';

flep_session_start();

if (isset($_GET["logout"])) {
    flep_logout();
}

if (empty($_SESSION) || !flep_valid_login($_SESSION['user'])) {
    header("Location: index.php");
} else {
    header("Location: main.php");
}
?>
